home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / v cisle / acehtml / acehtmlfreeware.exe / scriptdef / Show Date 5.sd < prev    next >
INI File  |  2004-06-28  |  963b  |  53 lines

  1. [SUBJECT]
  2. Description=Display the current date (5th variant)
  3. ImageIndex=-1
  4. Folder=Tools
  5.  
  6.  
  7. [HEAD_TEXT]
  8. ;<script language="JavaScript">
  9. ;<!-- begin script
  10. ;var dd5, delay5, TheYear;
  11. ;function debuteDate5() {
  12. ;  var adate, date, amonth;
  13. ;  delay5 = `delay`;
  14. ;
  15. ;  adate = new Date();
  16. ;  date = adate.getDate();
  17. ;  amonth = adate.getMonth()+1;
  18. ;
  19. ;  if (adate.getYear() > 1999)
  20. ;    TheYear = adate.getYear();
  21. ;  else 
  22. ;    TheYear = (1900 + adate.getYear());
  23. ;
  24. ;  if (amonth < 10)
  25. ;    date += "/0" + amonth + "/" + TheYear;
  26. ;  else date += "/" + amonth + "/" + TheYear;
  27. ;  date = "  " + date;
  28. ;  document.Temps25.date.value = date;
  29. ;
  30. ;  dd5 = setTimeout("debuteDate5(delay5)",delay5);
  31. ;}
  32. ;//  end script -->
  33. ;</script>
  34. ;
  35.  
  36.  
  37. [BODY_TAG]
  38. ;onLoad="debuteDate5()" onUnload="clearTimeout(dd5)"
  39.  
  40.  
  41. [BODY_TEXT]
  42. ;<form name="Temps25">
  43. ;<input type="text" name="date" size="18"><br>
  44. ;</form>
  45. ;
  46.  
  47.  
  48.  
  49. [`delay`]
  50. Kind=N
  51. Value=10000
  52.  
  53.